<template>
  <div class="list flex-center">
    <div v-for="(item,index) in col" :key="index" class="item">
      <img :src="item.img" alt="tu">
      <div class="right">
        <div class="info">{{ item.title }}</div>
        <div class="val">{{ datas[item.key] || 0 }}</div>
      </div>
    </div>
  </div>
</template>

<script setup>
defineProps({
  col: {
    type: Array,
    default: []
  },
  datas: {
    type: Object,
    default: () => {
    }
  },
});
</script>

<style lang="less" scoped>
@import "./index.less";
</style>
